﻿using ProtoBuf;

namespace ToyChat.BuiltinModules
{
    /// <summary>
    /// This message is used for sending server informations to users
    /// </summary>
    [ProtoContract(Name = "Core.ServerInfoMessage")]
    public class ServerInfoMessage
    {
        /// <summary>
        /// Gets or Sets the name of the server
        /// </summary>
        [ProtoMember(1)]
        public string Name { get; set; }

        /// <summary>
        /// Gets or Sets the MotD of the server
        /// </summary>
        [ProtoMember(2)]
        public string MotD { get; set; }
    }
}